package com.soft.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.soft.entity.Location;
import com.soft.service.LocationService;

@RestController
@RequestMapping("/location")
public class LocationController {
	@Autowired
	private LocationService locationService;
	@RequestMapping("/queryByDeptNo")
	public List<Location> queryByDeptLoc(String deptLoc){
		return locationService.queryByDeptLoc(deptLoc);
	}
}
